package com.hgw.Demo01_proxyPattern.dynamicProxy;

/**
 * Data time:2021/12/13 15:59
 * StudentID:2019112118
 * Author:hgw
 * Description:
 */
public class Client {
    public static void main(String[] args) {
        // 获取代理对象
        // 1、创建代理工厂对象
        ProxyFactory factory = new ProxyFactory();
        // 2、使用factory对象的方法直接获取代理对象
        SellTickets proxyObject = factory.getProxyObject();
        proxyObject.sell();
    }
}
